Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MARXAN-1274-publicMap-screenshot #1007

Merged
merged 7 commits into from
Apr 26, 2022

Conversation

rubvalave
Copy link
Contributor

-Adds screenshot generation to publish action.
-Adds new location field to published project entity.
-Adapts tests to new fields.
-Minor removal of redundant fixture data.

@rubvalave rubvalave requested a review from hotzevzl April 22, 2022 15:20
@rubvalave rubvalave self-assigned this Apr 22, 2022
@vercel
Copy link

vercel bot commented Apr 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
marxan ✅ Ready (Inspect) Visit Preview Apr 26, 2022 at 10:04AM (UTC)
marxan-storybook ✅ Ready (Inspect) Visit Preview Apr 26, 2022 at 10:04AM (UTC)

@@ -5,6 +5,7 @@ import {
Creator,
Resource,
} from '../dto/create-published-project.dto';
import { string } from 'fp-ts';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is what you meant (though it may be what LSP and vscode thought you meant)

import { WebshotService } from '@marxan/webshot';
import { AppConfig } from '@marxan-api/utils/config.utils';
import { assertDefined } from '@marxan/utils';
import { isLeft, isRight } from 'fp-ts/lib/These';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { isLeft, isRight } from 'fp-ts/lib/These';
import { isLeft, isRight } from 'fp-ts/lib/Either';

api/apps/api/test/fixtures/test-data.sql Show resolved Hide resolved
company: { name: 'logo', logoDataUrl: blmImageMock },
creators: [{ displayName: 'fake name', avatarDataUrl: blmImageMock }],
resources: [{ title: 'fake url', url: 'http://www.example.com' }],
config: { baseUrl: 'example/png', cookie: 'randomCookie' },
scenarioId,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in hindsight, I think we should have labelled this featuredScenarioId in the DTO for this, but let's not get there now 😓

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, I think I would change it as you suggested, mainly because once I start the export here, I would also be able to select which scenarios I want for the export and it can get confusing real fast.

@rubvalave rubvalave force-pushed the MARXAN-1274-add-publishedProject-map-generation branch from 9fb3d33 to 2aaa8ce Compare April 26, 2022 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants